<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>流程设计器 个人主页</title>

</head>
<style>
table{
    border:1px solid #000000;
}
table tr th{
    background-color: #CCCCCC;
}


</style>
<body>

<h2>
    <span style="color:#46b8da">
    <#if Session["geaUser"]?exists>
        ${Session["geaUser"].name}
    </#if>
    </span>
    的用户主页</h2>
<div>
     <#if Session["geaUser"]?exists>
            <a href="/toApplForm?userid=${Session["geaUser"].id}">我要写申请</a>
         </#if>
<a href="/index">制作流程</a>
    <table width="100%" >
        <tr>
            <th width="10%">No.</th>
            <th width="10%">流程实例ID</th>
            <th width="20%">代办任务名称</th>
            <th width="40%">操作</th>
        </tr>

        <#list tasks as task>
            <tr align="center">
                <td >${task.id}</td>
                <td >${task.processInstanceId}</td>
                <td >${task.name}</td>

            <#if Session["geaUser"]?exists>
                <td><a href="/completeTask?taskId=${task.id}&status=approve">同意</a>
               <a href="/completeTask?taskId=${task.id}&status=reject">拒绝</a>

                <a href="/completeTask?taskId=${task.id}&status=giveUp">放弃</a>
                <a href="/wf/viewProcessImg/${task.processInstanceId}">查看流程</a>

                </td>

            </#if>


            </tr>
        </#list>

    </table>


    <table>
        <#list hiPros as hiPro>
        <tr>
            <td>${hiPro.getProcessDefinitionName()}</td>
            <td>${hiPro.getStartTime()}</td>
            <td>${hiPro.getId()}</td>
        </tr>
        </#list>
    </table>
</div>
</body>
</html>